//
//  CompanyListTableViewCell.m
//  ShangPiBao
//
//  Created by chirui on 2017/10/16.
//  Copyright © 2017年 Shui. All rights reserved.
//

#import "CompanyListTableViewCell.h"

@implementation CompanyListTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
    }
    return self;

}

+(NSString *)reuseIdentifier{

    NSString * reuseIdentifier = @"CompanyListTableViewCell";
    
    return reuseIdentifier;

}

-(void)setBgView:(UIView *)bgView{

    _bgView = bgView;
    bgView.layer.cornerRadius = 3.f;
    bgView.layer.masksToBounds = YES;

}

-(void)setCompanyImage:(UIImageView *)companyImage{

    _companyImage = companyImage;
    
    companyImage.layer.cornerRadius = 4.f;
    companyImage.layer.masksToBounds = YES;
}

-(void)setDetailsLabel:(UILabel *)detailsLabel{

    _detailsLabel = detailsLabel;
    
    detailsLabel.text = @"这位“特战之王”一整套出枪动作仅需0.6秒，以至于央视的摄像机都曾捕捉不到。而且在带兵训练方面也有一套，甚至曾为了刺激不敢爬高台的新兵，让自己的妻子爬上10米高的障碍台。";
    detailsLabel.numberOfLines = 3;
    [detailsLabel sizeToFit];

}

-(void)setCompamyName:(UILabel *)compamyName{
    _compamyName = compamyName;
    compamyName.numberOfLines = 2;
    [compamyName sizeToFit];

}

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
